<div class="page-header">
    <h3>Notes</h3>
</div>

<?php
if(!isset($marks)):
echo '<p>Auccune note </p>';
else:
?>

<table class="table table-condensed">
    <thead>
        <tr>
			<th>Evaluation</th>
            <th>date</th>
            <th>type</th>
            <th>note</th>
            <th>Etudiant</th>
        </tr>
    </thead>
    <tbody class="well">
        <?php
        foreach($marks as $mark):
        ?>
        <tr>
 			<th><?php echo $mark['title']; ?></th>
            <td><?php echo $mark['date'].' '.$mark['heure']; ?></td>
            <td><?php echo $mark['type']; ?></td>
            <td><?php echo $mark['note']; ?></td>
            <td><?php echo anchor('user_profiles/view/'.$mark['student_id'], $mark['student']); ?></td>
        </tr>
        <?php
        endforeach;
        ?>
    </tbody>
</table>

<?php
endif;